package com.netcracker.studportal.server.main_test;

import org.json.simple.JSONObject;

import com.netcracker.studportal.server.facade.FacadeAdmin;
import com.netcracker.studportal.server.model.ExamWithResult;
import com.netcracker.studportal.server.model.User;
import com.netcracker.studportal.server.util.FactoryDAO;

public class MainFacadeExam_res {
	public static void main(String args[]){
		FacadeAdmin fa= new  FacadeAdmin();
		try{
			
		JSONObject obj = new JSONObject();

		obj.put("exam_id", "8");
		obj.put("student_id", "2");
		obj.put("mark", "5");
		obj.put("note", "12");
	    
        //String str=fa.updateFieldExamWithResult(obj.toString());
		//String str=fa.addNewExamWithResult(obj.toString());
		String str=fa.deleteFieldExamWithResult(obj.toString());
		
		System.out.println("str "+str);
		
		//String all_exam_res=fa.getAllExamWithResult();		
		//System.out.println(all_exam_res);	
		
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
}
